﻿using Manon.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.ConfigCenter.Web.ApplicationCore.Entities
{ 

    [Table("project_config")]
    public class ProjectConfig : IBaseEntity
    {
        public int Id { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        public int ProjectId { get; set; }

        /// <summary>
        /// 环境id
        /// </summary>
        public int EnvId { get; set; }

        /// <summary>
        /// 当前配置版本号
        /// </summary>
        public string VersionNumber { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 配置的json文件数据，如果长度不够请更改长度
        /// </summary>
        public string JsonSettings { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 1 草稿  2 待审核 3 已审核 4审核不通过
        /// </summary>
        public int ConfigStatus { get; set; }

        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public DateTime? DeleteTime { get; set; }
        public bool IsDeleted { get; set; }

        public int CreateBy { get; set; }
        public int UpdateBy { get; set; }

        public string CreateByName { get; set; }

        public string UpdateByName { get; set; }
    }
}
